package com.qfedu.service.impl;

import com.qfedu.dao.HotRepository;
import com.qfedu.pojo.entity.Hot;
import com.qfedu.pojo.resp.BaseResp;
import com.qfedu.service.HotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName HotServiceImpl
 * @Description TODO
 * @Author young
 * @Date 2022-09-27 17:37
 * @Version 1.0
 **/
@Service
public class HotServiceImpl implements HotService {
    @Autowired
    HotRepository hotRepository;
    @Override
    public BaseResp findAll() {
        List<Hot> all = hotRepository.findAll();
        return new BaseResp(1,"success",all,null);
    }
}
